/****************************************************************
 * Fulguro
 * Copyright (C) 2004 Christophe Clienti
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 ***************************************************************/

#ifdef __cplusplus
extern "C" {
#endif

#ifndef __FLGR_MORPHO_GEODESY_H
#define __FLGR_MORPHO_GEODESY_H

#include <flgrCoreDll.h>
#include <flgrCoreErrors.h>
#include <flgrCoreTypes.h>
#include <flgrCoreData.h>




  EXPORT_LIB FLGR_Ret flgr2d_geodesic_dilate(FLGR_Data2D *imgdest, FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Data2D *nhb);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_erode(FLGR_Data2D *imgdest, FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Data2D *nhb);

  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);

  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_open(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Data2D *nhb);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_close(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Data2D *nhb);

  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_open_tophat(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Data2D *nhb);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_close_tophat(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Data2D *nhb);

  EXPORT_LIB FLGR_Ret flgr2d_regional_hminima(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Vector *hlevel, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_regional_hmaxima(FLGR_Data2D *imgdest, FLGR_Data2D *imgsrc, FLGR_Vector *hlevel, FLGR_Connexity connexity);



  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgBIT(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgUINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgUINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgUINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexitye);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgFLOAT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_erode_fgFLOAT64(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);

  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgBIT(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgUINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgUINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgUINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgFLOAT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dilate_fgFLOAT64(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask,FLGR_Connexity connexity);

  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgBIT(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgUINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgUINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgUINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgINT8(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgINT16(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgINT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgFLOAT32(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);
  EXPORT_LIB FLGR_Ret flgr2d_geodesic_reconstruct_dual_fgFLOAT64(FLGR_Data2D *imgMarker, FLGR_Data2D *imgMask, FLGR_Connexity connexity);


#endif						

#ifdef __cplusplus
}
#endif
